package remote.calculator;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class NormalCalculator extends UnicastRemoteObject implements Calculator {
	private static final long serialVersionUID = -4120291006287563673L;

	public NormalCalculator() throws RemoteException {
		super();
	}

	@Override
	public double add(final double a, final double b) throws RemoteException {
		return a + b;
	}

	@Override
	public double sub(final double a, final double b) throws RemoteException {
		return a - b;
	}

	@Override
	public double mul(final double a, final double b) throws RemoteException {
		return a * b;
	}

	@Override
	public double div(final double a, final double b) throws RemoteException {
		return a / b;
	}

}